﻿@model JPSOFTWARE.BON.Modelos.FeedbackModel
@{
	ViewBag.Title = "Bebida Social - Feedback";
	Layout = "~/Views/Shared/_Layout.cshtml";
}
<script src="@Url.Content("~/Scripts/feedback.js")" type="text/javascript"></script>
<script type="text/javascript">
	$(document).ready(function () {
		FormularioFeedback();
	});
</script>
<div class="span4">
</div>
<div class="span4 box">
	<div class="box-head">
		<h3>
			Feedback</h3>
	</div>
	<div class="box-content">
		<div class="content-inner">
			<div class="form">
				@using (Html.BeginForm("Feedback", "Inicio", FormMethod.Post))
	{             
					@Html.Hidden("hFeedbackUsuario", ViewData["FeedbackUsuario"]) 
					@Html.Hidden("hFeedbackUsuarioErro", ViewData["FeedbackUsuarioErro"])										
																							
					@Html.ValidationSummary(true, "", new { @class = "alert alert-danger" })
								
					<div class="control-group">
						<div class="control-label">
							@Html.LabelFor(model => model.Nome)
						</div>
						<div class="controls">
							@Html.TextBoxFor(model => model.Nome, new { @class = "input-xlarge", MaxLength = 100 })
							<p>
								@Html.ValidationMessageFor(model => model.Nome)
							</p>
						</div>
					</div>
					<div class="control-group">
						<div class="control-label">
							@Html.LabelFor(model => model.Email)
						</div>
						<div class="controls">
							@Html.TextBoxFor(model => model.Email, new { @class = "input-xlarge", MaxLength = 100 })
							<p>
								@Html.ValidationMessageFor(model => model.Email)
							</p>
						</div>
					</div>
					<div class="control-group">
						<div class="control-label">
							@Html.LabelFor(model => model.Mensagem)
						</div>
						<div class="controls">
							@Html.TextAreaFor(model => model.Mensagem, new { @class = "input-xlarge" })
							<p>
								@Html.ValidationMessageFor(model => model.Mensagem)
							</p>
						</div>
					</div>					
					<div class="form-actions">
						<button type="submit" class="btn btn-primary" value="Registrar">
							<i class="icon-ok icon-white"></i>&nbsp;Enviar</button>
						<button type="button" class="btn" id="btCancelar" value="Cancelar">
							<i class="icon-ban-circle"></i>&nbsp;Cancelar</button>
					</div>                                                            
	}
			</div>
		</div>
	</div>
</div>
<div class="span4">
</div>

<div id="divFeedbackSucesso" class="modal">
    <div class="modal-header">
        <h3>Feedback</h3>
    </div>
    <div class="modal-body">
        @JPSOFTWARE.BON.Modelos.Mensagens.MSG_005
    </div>
    <div class="modal-footer">        
        @Html.ActionLink("Ok", "Inicial", "Inicio", null, new { @class = "btn btn-primary" })
    </div>
</div>
<div id="divFeedbackErro" class="modal">
    <div class="modal-header">
        <h3>Feedback</h3>
    </div>
    <div class="modal-body">
        @JPSOFTWARE.BON.Modelos.Mensagens.MSG_006
    </div>
    <div class="modal-footer">
        <span><a class="btn btn-primary" href="javascript:FecharTelaErro()">Tentar
            novamente?</a></span>
    </div>
</div>
<div id="divFeedbackCancelar" class="modal">
    <div class="modal-header">
        <h3>Feedback</h3>
    </div>
    <div class="modal-body">
        @JPSOFTWARE.BON.Modelos.Mensagens.MSG_020
    </div>
    <div class="modal-footer">
        <span>@Html.ActionLink("Ok", "Inicial", "Inicio", null, new { @class = "btn btn-primary" })</span>
        <span><a class="btn" href="javascript:CancelarOperacao()">Não</a></span>
    </div>
</div>
